import request from '@/utils/request'
import {getToken} from '@/utils/auth'
var token = getToken()
//列表
export function getHosPartList(id) {
  return request({
    url: '/hosPart/list/by/'+id,
    method: 'get',
  })
}
// 分页列表
export function getHosPartPageList(data,id,pageData) {
  return request({
    url: '/hosPart/page/by/'+id+'/'+pageData.pageNo+'/'+pageData.pageSize,
    method: 'post',
    data
  })
}
//新增
export function getHosPartAdd(data) {
    return request({
      url: '/hosPart/add',
      method: 'post',
      data
    })
  }

// 修改
export function getHosPartUpdate(data) {
    return request({
      url: '/hosPart/update',
      method: 'post',
      data
    })
  }


// 查看
export function getHosPartDetail(id) {
    return request({
      url: '/hosPart/detail/'+id,
      method: 'get',
    })
  }

// 删除
export function getHosPartDelete(id) {
    return request({
      url: '/hosPart/delete/'+id,
      method: 'get',
    })
  }